﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LinkGame.Models.Variations
{
    internal sealed class MovingRightVariation : ApplicableVariation
    {
        #region Protected Methods

        protected override void DoApply(Map map, Point p1, Point p2)
        {
            if (p1.Y == p2.Y && p1.X > p2.X)
            {
                MoveTilesOnPoint(map, p2, MovingDirection.Right);
                MoveTilesOnPoint(map, p1, MovingDirection.Right);
            }
            else
            {
                MoveTilesOnPoint(map, p1, MovingDirection.Right);
                MoveTilesOnPoint(map, p2, MovingDirection.Right);
            }
        }

        #endregion Protected Methods

    }
}